package com.justgame.project.service.just.service;

import com.justgame.project.service.api.entity.ViewGame;
import com.justgame.project.service.just.mapper.ViewGameMapper;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
@AllArgsConstructor
@Slf4j
public class ViewGameService {

    private final ViewGameMapper viewGameMapper;


    /**
     * 添查看详情记录
     */
    public void AddViewRecord(String gameId) {
        viewGameMapper.addView(new ViewGame(gameId));
    }

}
